package books;

import util.Entity;
import builders.AuthorBuilder;

/**
 * Represents an author
 */
public class Author extends Entity {

    private static final long serialVersionUID = 1L;

    private String name;

    public Author() {
        super();
        this.name = "";
        // constructor vacio
    }

    public Author(final AuthorBuilder builder) {
        super();
        this.name = builder.getName();
    }

    public Author(final String aName) {
        super();
        this.name = aName;
    }

    public String getName() {
        return this.name;
    }

    public void setName(final String aName) {
        this.name = aName;
    }
}
